<%@taglib uri="/WEB-INF/struts-bean.tld"  prefix="bean"%>
<script language="JavaScript">
    function validate_nilai_kriteria_form(){
        if ( document.NilaiForm.namaKriteria.value == "" ){
            alert ( "<bean:message key="nilai.nama"/> "+isEmpty );
        }else if ( document.NilaiForm.keteranganKriteria.value == "" ){
            alert ( "<bean:message key="nilai.keterangan"/> "+isEmpty );
        }else {
            document.NilaiForm.submit();
        }
    }

    function validate_penilaian_form(){
        if ( document.NilaiForm.nama.value == "" ){
            alert ( "<bean:message key="nilai.nama"/> "+isEmpty );
        }else if ( document.NilaiForm.nilai.value == "" ){
            alert ( "<bean:message key="nilai.nilai"/> "+isEmpty );
        }else if ( document.NilaiForm.matapelajaran.value == "" ){
            alert ( "<bean:message key="mapel.mapel"/> "+isEmpty );
        }else if ( document.NilaiForm.nilaiKriteria.value == "" ){
            alert ( "<bean:message key="nilai.nilaiKriteria"/> "+isEmpty );
        }else if ( document.NilaiForm.accountKelas.value == "" ){
            alert ( "<bean:message key="kelas.accountKelas"/> "+isEmpty );
        }else {
            document.NilaiForm.submit();
        }
    }
</script>